package com.twu.biblioteca;

/**
 * Created by renatagrfarias on 9/18/14.
 */
public class Book {

    private String id;
    private String title;
    private String author;
    private String year;
    private User user;
    private boolean checkOut;

    public Book(String id, String title, String author, String year){
        this.id = id;
        this.title = title;
        this.author = author;
        this.year = year;
        checkOut = false;
    }

    public User getUser() { return user; }

    public String getId(){
        return id;
    }

    public String getTitle(){
        return title;
    }

    public String getAuthor(){
        return author;
    }

    public void setUser(User user) { this.user = user; }

    public String getYear(){
        return year;
    }

    public boolean getCheckOut() { return checkOut; }

    public void setId(String newId){
        this.id = newId;
    }

    public void setTitle(String newTitle){
        this.title = newTitle;
    }

    public void setAuthor(String newAuthor){
        this.author = newAuthor;
    }

    public void setYear(String newYear){
        this.year = newYear;
    }

    public void setCheckOut(boolean newCheckOut){
        this.checkOut = newCheckOut;
    }
}
